package com.wm.flyweight;

/**
 * @ClassName: Memory
 * @Description: 内存大小
 * @Author: WM
 * @Date: 2023/5/4 10:35
 */
public class Memory {

    // 内存大小，单位MB
    private int size;
    // 内存是否被使用
    private boolean isUsed;
    // 内存ID
    private String id;

    public Memory(int size, boolean isUsed, String id) {
        this.size = size;
        this.isUsed = isUsed;
        this.id = id;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public boolean isUsed() {
        return isUsed;
    }

    public void setUsed(boolean used) {
        isUsed = used;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
